<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">

</block>

<block name="main">
<div class="pd-20">
	<form action="{:u('edit_post')}" method="post" class="form form-horizontal validator_form close-dialog" id="form-article-add">
		
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>学期：</label>
			<div class="formControls col-6">
			  	<span class="select-box mb-5">
				  <select class="select" size="1" name="tid" id="xueqi">
				  	<foreach name="xueqi" item="vo">
				    <option value="{$vo.id}" <if condition="$vo['id'] eq $lsinfo['tid']">selected</if>>{$vo.title}</option>
				    </foreach>
				  </select>
				</span>
			</div>
			<div class="col-4"> </div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-2">备注：</label>
			<div class="formControls col-8">
				<textarea name="remark" cols="" rows="" class="textarea"  placeholder="" >{$info.remark}</textarea>
			</div>
		</div>
	  	<div class="row cl">
	    	<div class="col-9 col-offset-2">
	    		<input type="hidden" name="id" value="{$info['id']}">
	    		<input type="hidden" name="ctid" value="{$ctid}"/>
	      		<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
	    	</div>
	  	</div>
	</form>
</div>
</block>

<block name="script">
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$('.mini-time').datepicker();
	
	//$("input[name='worknum']").blur(function(){
	//	get_total();
	//});
	//$("input[name='price']").blur(function(){
	//	get_total();
	//});
	//$("input[name='materialcost']").blur(function(){
	//	get_total();
	//});

	//function get_total(){
	//	var total;
	//	var worknum = $("input[name='worknum']").val();//课次
	//	var price = $("input[name='price']").val();//单价
	//	var materialcost = $("input[name='materialcost']").val();//材料费
	//	if(worknum !=='' && price !=='' && materialcost!==''){
	//		total = (parseFloat(price)+parseFloat(materialcost))*parseInt(worknum);
	//		$("input[name='total']").val(total);
	//	}
	//}

});
</script>
</block>